projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
05ded28
)
Plug a memory leak
author
Matthias Clasen
<mclasen@redhat.com>
Mon, 5 Oct 2009 02:35:12 +0000
(22:35 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Mon, 5 Oct 2009 02:35:12 +0000
(22:35 -0400)
Valgrind reported a leak of regions from gdk_window_process_updates_internal.
gdk/gdkwindow.c
patch
|
blob
|
history
diff --git
a/gdk/gdkwindow.c
b/gdk/gdkwindow.c
index 7f3572f5b0d46a645a85971210e19e8c5cdb793a..2bb55518fc7ee1d25355f26f6957a59595cecd3b 100644
(file)
--- a/
gdk/gdkwindow.c
+++ b/
gdk/gdkwindow.c
@@
-2624,6
+2624,8
@@
gdk_window_end_implicit_paint (GdkWindow *window)
/* Reset clip region of the cached GdkGC */
gdk_gc_set_clip_region (tmp_gc, NULL);
}
+ else
+ gdk_region_destroy (paint->region);
g_object_unref (paint->pixmap);
g_free (paint);